<html>
 <head>
    <meta name="layout" content="main" />
 </head>
    <div>
      <ul>
        <li><a href="${createLink(uri:'/') }">HOME</a> </li>
        <li><g:link action="list">Lista de Categorias</g:link></li>
        <li><g:link>Crear Categoria</g:link></li>
      </ul>
    </div>
    <div>
		<g:if test="${flash.message}">
		   <div class="message">${flash.message}</div>
		</g:if>
		 
		<ol class="property-list">
			<g:if test="${categoriaInstance}">
			   <h6>Nombre</h6><g:fieldValue bean="${categoriaInstance}" field="nombre"/>
			   <h6>Descripción</h6><g:fieldValue bean="${categoriaInstance}" field="descripcion"/>
			</g:if>
		</ol>
		
		<g:form>
		   <g:hiddenField name="id" value="${categoriaInstance?.id}"/>
		   <g:link class="edit" action="edit" id="${categoriaInstance?.id}">Edit</g:link>
		   <g:actionSubmit class="delete" action="delete" value="Delete" onclick="return confirm('are you sure?')"/>
		</g:form>
    </div>
</html>